From 650bb23bf92b3f811cd3324d194b46bb92b74804 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Mon, 10 Jul 2006 14:14:11 -0600 Subject: [PATCH] [IA64] don't change NaTPAGE into WB Xen/IA64 changes memory attributes of tlb into WB to prevent domU from uncachable access. But NaTPage attribute need not to be changed to WB. Linux uses NaTPage attributes. Signed-off-by: Isaku Yamahata ` --- xen/arch/ia64/xen/mm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/mm.c b/xen/arch/ia64/xen/mm.c index fc406daf2f..7a7f720ea4 100644 --- a/xen/arch/ia64/xen/mm.c +++ b/xen/arch/ia64/xen/mm.c @@ -475,8 +475,11 @@ u64 translate_domain_pte(u64 pteval, u64 address, u64 itir__, u64* logps, * Don't let non-dom0 domains map uncached addresses. This can * happen when domU tries to touch i/o port space. Also prevents * possible address aliasing issues. + * WB => WB + * UC, UCE, WC => WB + * NaTPage => NaTPage */ - if (d != dom0) + if (d != dom0 && (pteval2 & _PAGE_MA_MASK) != _PAGE_MA_NAT) pteval2 &= ~_PAGE_MA_MASK; return pteval2; -- 2.30.2